package gmusic.bo;

import java.sql.ResultSet;
import java.sql.SQLException;

public class PaysBean {

	private int id;
	private String nom;
	private String drapeau = null;

	public PaysBean() {
	}

	public PaysBean(ResultSet rs) throws SQLException {
		setId(rs.getInt("pa_id"));
		setNom(rs.getString("pa_nom"));
		setDrapeau(rs.getString("pa_drapeau"));
	}

	public int getId() {
		return id;
	}

	public void setId(int i) {
		id = i;
	}

	public String getNom() {
		return nom;
	}

	public void setNom(String n) {
		nom = n;
	}

	public String getDrapeau() {
		return drapeau;
	}

	public void setDrapeau(String d) {
		drapeau = d;
	}

	public String toString() {
		return "[" + id + "] " + nom;
	}
}
